//
//  SGUserManager.h
//  SemiGroup
//
//  Created by 陈无忌 on 12/9/15.
//  Copyright © 2015 陈无忌. All rights reserved.
//

#import <Foundation/Foundation.h>

#define USERNAME @"username"
#define PASSWORD @"password"
#define AUTOLOGIN @"autoLogin"

@interface SGUserManager : NSObject

//判断用户登录状态
@property (nonatomic) BOOL isLogin;
//登录用户对象
@property (nonatomic, strong) SGUser *loginUser;



+ (id)sharedInstance;
+ (void)destory;

#pragma mark - public method
- (void)saveLoginUsername:(NSString *)username Password:(NSString *)password LoginType:(NSInteger)loginType;

- (void)cancalAutoLogin;

- (BOOL)isNeedToJumpLogin;



@end
